home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Spiele & Edutainment / 3doors / background_5500.xml < prev    next >
Extensible Markup Language  |  1996-03-03  |  8KB  |  240 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>5500</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3102.css" />
  10.     <part>
  11.         <id>1</id>
  12.         <type>field</type>
  13.         <visible> <true /> </visible>
  14.         <dontWrap> <false /> </dontWrap>
  15.         <dontSearch> <false /> </dontSearch>
  16.         <sharedText> <false /> </sharedText>
  17.         <fixedLineHeight> <true /> </fixedLineHeight>
  18.         <autoTab> <false /> </autoTab>
  19.         <lockText> <true /> </lockText>
  20.         <rect>
  21.             <left>82</left>
  22.             <top>213</top>
  23.             <right>184</right>
  24.             <bottom>231</bottom>
  25.         </rect>
  26.         <style>transparent</style>
  27.         <autoSelect> <false /> </autoSelect>
  28.         <showLines> <false /> </showLines>
  29.         <wideMargins> <false /> </wideMargins>
  30.         <multipleLines> <false /> </multipleLines>
  31.         <reservedFamily> 0 </reservedFamily>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>0</icon>
  34.         <textAlign>center</textAlign>
  35.         <font>Geneva</font>
  36.         <textSize>12</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <textHeight>16</textHeight>
  39.         <name>sel1</name>
  40.         <script></script>
  41.     </part>
  42.     <part>
  43.         <id>2</id>
  44.         <type>field</type>
  45.         <visible> <true /> </visible>
  46.         <dontWrap> <false /> </dontWrap>
  47.         <dontSearch> <false /> </dontSearch>
  48.         <sharedText> <false /> </sharedText>
  49.         <fixedLineHeight> <true /> </fixedLineHeight>
  50.         <autoTab> <false /> </autoTab>
  51.         <lockText> <true /> </lockText>
  52.         <rect>
  53.             <left>209</left>
  54.             <top>213</top>
  55.             <right>311</right>
  56.             <bottom>231</bottom>
  57.         </rect>
  58.         <style>transparent</style>
  59.         <autoSelect> <false /> </autoSelect>
  60.         <showLines> <false /> </showLines>
  61.         <wideMargins> <false /> </wideMargins>
  62.         <multipleLines> <false /> </multipleLines>
  63.         <reservedFamily> 0 </reservedFamily>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Geneva</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <textHeight>16</textHeight>
  71.         <name>sel2</name>
  72.         <script></script>
  73.     </part>
  74.     <part>
  75.         <id>3</id>
  76.         <type>field</type>
  77.         <visible> <true /> </visible>
  78.         <dontWrap> <false /> </dontWrap>
  79.         <dontSearch> <false /> </dontSearch>
  80.         <sharedText> <false /> </sharedText>
  81.         <fixedLineHeight> <true /> </fixedLineHeight>
  82.         <autoTab> <false /> </autoTab>
  83.         <lockText> <true /> </lockText>
  84.         <rect>
  85.             <left>335</left>
  86.             <top>213</top>
  87.             <right>437</right>
  88.             <bottom>231</bottom>
  89.         </rect>
  90.         <style>transparent</style>
  91.         <autoSelect> <false /> </autoSelect>
  92.         <showLines> <false /> </showLines>
  93.         <wideMargins> <false /> </wideMargins>
  94.         <multipleLines> <false /> </multipleLines>
  95.         <reservedFamily> 0 </reservedFamily>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Geneva</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <textHeight>16</textHeight>
  103.         <name>sel3</name>
  104.         <script></script>
  105.     </part>
  106.     <part>
  107.         <id>4</id>
  108.         <type>field</type>
  109.         <visible> <true /> </visible>
  110.         <dontWrap> <false /> </dontWrap>
  111.         <dontSearch> <false /> </dontSearch>
  112.         <sharedText> <false /> </sharedText>
  113.         <fixedLineHeight> <true /> </fixedLineHeight>
  114.         <autoTab> <false /> </autoTab>
  115.         <lockText> <true /> </lockText>
  116.         <rect>
  117.             <left>17</left>
  118.             <top>8</top>
  119.             <right>498</right>
  120.             <bottom>42</bottom>
  121.         </rect>
  122.         <style>transparent</style>
  123.         <autoSelect> <false /> </autoSelect>
  124.         <showLines> <false /> </showLines>
  125.         <wideMargins> <false /> </wideMargins>
  126.         <multipleLines> <false /> </multipleLines>
  127.         <reservedFamily> 0 </reservedFamily>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>0</icon>
  130.         <textAlign>left</textAlign>
  131.         <font>Geneva</font>
  132.         <textSize>12</textSize>
  133.         <textStyle>plain</textStyle>
  134.         <textHeight>16</textHeight>
  135.         <name>instructions</name>
  136.         <script></script>
  137.     </part>
  138.     <part>
  139.         <id>6</id>
  140.         <type>button</type>
  141.         <visible> <true /> </visible>
  142.         <reserved5> 0 </reserved5>
  143.         <reserved4> 0 </reserved4>
  144.         <reserved3> 0 </reserved3>
  145.         <reserved2> 0 </reserved2>
  146.         <reserved1> 0 </reserved1>
  147.         <enabled> <true /> </enabled>
  148.         <rect>
  149.             <left>208</left>
  150.             <top>287</top>
  151.             <right>308</right>
  152.             <bottom>309</bottom>
  153.         </rect>
  154.         <style>roundrect</style>
  155.         <showName> <true /> </showName>
  156.         <highlight> <false /> </highlight>
  157.         <autoHighlight> <true /> </autoHighlight>
  158.         <sharedHighlight> <true /> </sharedHighlight>
  159.         <family>0</family>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>0</icon>
  162.         <textAlign>center</textAlign>
  163.         <font>Chicago</font>
  164.         <textSize>12</textSize>
  165.         <textStyle>plain</textStyle>
  166.         <name>score</name>
  167.         <script>on mouseUpgo to card "score card"end mouseUp</script>
  168.     </part>
  169.     <part>
  170.         <id>7</id>
  171.         <type>field</type>
  172.         <visible> <true /> </visible>
  173.         <dontWrap> <false /> </dontWrap>
  174.         <dontSearch> <false /> </dontSearch>
  175.         <sharedText> <true /> </sharedText>
  176.         <fixedLineHeight> <false /> </fixedLineHeight>
  177.         <autoTab> <false /> </autoTab>
  178.         <lockText> <false /> </lockText>
  179.         <rect>
  180.             <left>481</left>
  181.             <top>323</top>
  182.             <right>512</right>
  183.             <bottom>342</bottom>
  184.         </rect>
  185.         <style>rectangle</style>
  186.         <autoSelect> <false /> </autoSelect>
  187.         <showLines> <false /> </showLines>
  188.         <wideMargins> <false /> </wideMargins>
  189.         <multipleLines> <false /> </multipleLines>
  190.         <reservedFamily> 0 </reservedFamily>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>0</icon>
  193.         <textAlign>left</textAlign>
  194.         <font>Geneva</font>
  195.         <textSize>12</textSize>
  196.         <textStyle>plain</textStyle>
  197.         <textHeight>16</textHeight>
  198.         <name>waiTime</name>
  199.         <script></script>
  200.     </part>
  201.     <part>
  202.         <id>14</id>
  203.         <type>button</type>
  204.         <visible> <true /> </visible>
  205.         <reserved5> 0 </reserved5>
  206.         <reserved4> 0 </reserved4>
  207.         <reserved3> 0 </reserved3>
  208.         <reserved2> 0 </reserved2>
  209.         <reserved1> 0 </reserved1>
  210.         <enabled> <true /> </enabled>
  211.         <rect>
  212.             <left>27</left>
  213.             <top>314</top>
  214.             <right>119</right>
  215.             <bottom>337</bottom>
  216.         </rect>
  217.         <style>roundrect</style>
  218.         <showName> <true /> </showName>
  219.         <highlight> <false /> </highlight>
  220.         <autoHighlight> <true /> </autoHighlight>
  221.         <sharedHighlight> <true /> </sharedHighlight>
  222.         <family>0</family>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>0</icon>
  225.         <textAlign>center</textAlign>
  226.         <font>Chicago</font>
  227.         <textSize>12</textSize>
  228.         <textStyle>plain</textStyle>
  229.         <name>About</name>
  230.         <script>on mouseUpgo to card "about"end mouseUp</script>
  231.     </part>
  232.     <content>
  233.         <layer>background</layer>
  234.         <id>7</id>
  235.         <text>25</text>
  236.     </content>
  237.     <name>play game</name>
  238.     <script>on openBackgroundrestartend openBackgroundon playAgainset the visible of card button "1" to trueset the visible of card button "2" to trueset the visible of card button "3" to trueput empty into bkgnd fld sel1put empty into bkgnd fld sel2put empty into bkgnd fld sel3restartend playAgainon restartglobal tryNbrput 1 into tryNbrgo to any card of this backgroundput "Choose a door" into bkgnd fld "instructions"end restarton closeCardset the visible of card button "1" to trueset the visible of card button "2" to trueset the visible of card button "3" to trueput empty into bkgnd fld sel1put empty into bkgnd fld sel2put empty into bkgnd fld sel3put empty into bkgnd fld "instructions"end closeCardon doorselect doorNameglobal carLoc, shownDoor, tryNbr, firstPickglobal switchWins, switchLosses, stayWins, stayLossesif tryNbr=1 thenput doorName into firstPickput "sel"&doorName into selnameput "selected" into bkgnd fld selnameput "Monty shows you door number " into bkgnd fld "instructions"if doorName=carLoc thenput (carLoc mod 3) + 1 into shownDoorif (the random of 2) = 1 thenput (carLoc mod 3) + 1 into shownDoorend ifelseput (6 - (doorName + carLoc)) into shownDoorend ifput shownDoor after bkgnd fld "instructions"set the visible of card button shownDoor to falseput numToChar(13) after bkgnd fld "instructions"put "Do you want to switch?  " after bkgnd fld "instructions"put "Choose a door." after bkgnd fld "instructions"play "harpsichord" gput 2 into tryNbrelse if tryNbr=2 thenset the visible of card button doorName to falseif doorName=carLoc thenif doorname=firstPick thenadd 1 to stayWinselseadd 1 to switchWinsend ifput "You won a beautiful car" into bkgnd fld "instructions"elseif doorname=firstPick thenadd 1 to stayLosseselseadd 1 to switchLossesend ifput "You won a goat" into bkgnd fld "instructions"end ifwait bkgnd fld waiTimeput 3 into tryNbrplay "harpsichord" e cplayAgainend ifend doorselect</script>
  239. </background>
  240.